package model

import "time"

// User 用户表
type Cnotice struct {
	Id      int       `json:"id" form:"id"`
	Cid     string    `json:"cid" form:"cid"`
	Title   string    `json:"title" form:"title"`
	Content string    `json:"content" form:"content"`
	Data    time.Time `json:"data" form:"data"`
}

func CnoticeAll(cid string) ([]Cnotice, error) {
	mods := make([]Cnotice, 0, 4)
	err := DB.Select(&mods, "select * from cnotice where cid=?", cid)
	return mods, err
}
